import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class runReenter {
    public static void main(String[] args) {
        LockY y = new LockY();
        ExecutorService pool = Executors.newFixedThreadPool(3);
        for(int i=0;i<5;i++){
            pool.execute(new Runnable() {
                @Override
                public void run() {
                    y.m1();
                }
            });
            System.out.println("这是第"+(i+1)+"次调用。。。");
        }
        pool.shutdown();

    }
}
